@extends('admin.common.common')

@section('head')

    <link rel="stylesheet" href="/webuploade/webuploader.css">
@endsection


@section('body')

    <article class="page-container">
        <form action="{{ route('admin.notice.store') }}" method="post" class="form form-horizontal" id="fang-add">
            @csrf
            @if ($errors->any())
                <div class="Huialert-error Huialert">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            @endif

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>租客id：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="text" class="input-text" name="renting_id">
                </div>
            </div>

            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>预约时间：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <input type="datetime-local"  name="dtime">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>房东：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <select name="fangowner_id" style="width: 200px;">
                        <option value="0">==请选择==</option>
                        @foreach($fangowner as $val)
                            <option value="{{$val->id}}">{{$val->name}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>房源状态：</label>
                <div class="formControls col-xs-8 col-sm-9 skin-minimal">
                    <div class="radio-box">
                        <label>
                            <input name="status" type="radio" value="0" checked>
                            未看
                        </label>
                    </div>
                    <div class="radio-box">
                        <label>
                            <input type="radio" value="1" name="status">
                            已看
                        </label>
                    </div>
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>内容：</label>
                <div class="formControls col-xs-8 col-sm-9">
                    <textarea name="cnt" class="form-control textarea"></textarea>
                </div>
            </div>
            <div class="row cl">
                <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                    <input class="btn btn-primary radius" type="submit" value="添加预约">
                </div>
            </div>
        </form>
    </article>
@endsection


@section('js')

    <script src="/admin/lib/jquery.validation/1.14.0/jquery.validate.js"></script>
    <script src="/ueditor/ueditor.config.js"></script>
    <script src="/ueditor/ueditor.all.js"></script>
    <script src="/webuploade/webuploader.js"></script>

    <script>


    </script>
@endsection
